<!DOCTYPE html>
<html xmlns:th="http://www.springframework.org/schema/jdbc" lang="">
<head>
    <meta charset="utf-8">
    <title>商品管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../static/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="../../../static/expand/dtree/font/dtreefont.css">
    <link rel="stylesheet" href="../../../static/expand/dtree/dtree.css">
    <link rel="stylesheet" href="../../../static/expand/eleTree/eleTree/eleTree.css"  media="all">
</head>
<body>
<!--lay-filter="hospital_table" 表格初始化后下边监听table.on('toolbar(hospital_table)', function(obj)表格中的头+行操作事件-->
<div >
    <table class="layui-table" id="hospital_table" lay-filter="hospital_table"></table>
</div>
<!--部门管理-->
<div id="assignment_hospital_dept" style="padding: 20px; background-color: #F2F2F2; display:none">
    <div style="margin-bottom:20px ">
        <button id="edit_hospital_dept" type="button" class="layui-btn layui-btn-primary layui-btn-sm">
            <i class="layui-icon">&#xe642;</i>
        </button>
    </div>
    <ul id="DeptDtree" class="dtree" data-id="0"></ul>
</div>


<!--hospital_table_right 运用在表格初始化行数据cols中的操作栏 toolbar: -->
<script type="text/html" id="hospital_table_right">
    <!--<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail_hospital">查看</a>-->
    <a class="layui-btn layui-btn-xs" lay-event="edit_hospital">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete_hospital">删除</a>
    <!--<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="assignment_hospital_dept">部门</a>-->
</script>

<!-- hospital_table_top 运用在表格初始化属性中的 toolbar: -->
<script type="text/html" id="hospital_table_top"  >
    <div class="layui-btn-container">
        <button id="add_perm" type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="add_hospital">
            <i class="layui-icon">&#xe654;</i>
        </button>
        <button  type="button" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="batch_hospital_deleted">
            <i class="layui-icon">&#xe640;</i>
        </button>
    </div>
</script>

<script src="../../../static/layui/layui.js" charset="utf-8"></script>
<script src="../../../static/js/hospital/hospital.js"></script>
<script src="../../../static/expand/main.js" charset="utf-8"></script>

<script type="text/html" id="statusTemp">
    {{#  if(d.media.status==1){ }}
    <input type="checkbox" name="status" lay-skin="switch" checked   lay-text="开启|关闭"  value= {{ d.media.id}}  lay-filter="status" >
    {{#  } else { }}
    <input type="checkbox" name="status" lay-skin="switch"  lay-text="开启|关闭"  value= {{ d.media.id} lay-filter="status" >
    {{#  } }}
</script>
</body>
</html>
